//* example0
#include <boost/any.hpp>
#include <string>
int main()
{
    boost::any a = 1;
    a = 3.14;
    a = true;
    //a = "Liang Zhang"; /*compile error, use std::string instead
    a = std::string("Liang Zhang");
}